export class NoteSymbol {

    note: string;

    // the offset of the note in the grant staff, the bottom line (1st line) is 0
    offset: number;
}


export type Note = 'C' | 'D' | 'E' | 'F' | 'G' | 'A' | 'B';

export type Clef = 'G' | 'F';

export const staffTable: NoteSymbol[] = [

    {
        note: "C4",
        offset: -2,
    },
    {
        note: "D4",
        offset: -1,
    },
    {
        note: "E4",
        offset: 0,
    },
    {
        note: "F4",
        offset: 1,
    },
    {
        note: "G4",
        offset: 2,
    },
    {
        note: "A4",
        offset: 3,
    },
    {
        note: "B4",
        offset: 4,
    },
    {
        note: "C5",
        offset: 5,
    },
    {
        note: "D5",
        offset: 6,
    },
    {
        note: "E5",
        offset: 7,
    },
    {
        note: "F5",
        offset: 8,
    },
    {
        note: "G5",
        offset: 9,
    },
    {
        note: "A5",
        offset: 10,
    },
    {
        note: "B5",
        offset: 11,
    }
]